home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / konq_faviconmgr.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-10-10  |  2.0 KB  |  71 lines

  1. /* This file is part of the KDE project
  2.    Copyright (C) 1999 Malte Starostik <malte@kde.org>
  3.  
  4.    This library is free software; you can redistribute it and/or
  5.    modify it under the terms of the GNU Library General Public
  6.    License as published by the Free Software Foundation; either
  7.    version 2 of the License, or (at your option) any later version.
  8.  
  9.    This library is distributed in the hope that it will be useful,
  10.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12.    Library General Public License for more details.
  13.  
  14.    You should have received a copy of the GNU Library General Public License
  15.    along with this library; see the file COPYING.LIB.  If not, write to
  16.    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  17.    Boston, MA 02110-1301, USA.
  18. */
  19.  
  20. #ifndef __konq_faviconmgr_h__
  21. #define __konq_faviconmgr_h__ 
  22.  
  23. #include <dcopobject.h>
  24. #include <kurl.h>
  25. #include <libkonq_export.h>
  26.  
  27. /**
  28.  * Maintains a list of custom icons per URL. This is only a stub
  29.  * for the "favicons" KDED Module
  30.  */
  31. class LIBKONQ_EXPORT KonqFavIconMgr : public QObject, public DCOPObject
  32. {
  33.     Q_OBJECT
  34.     K_DCOP
  35. public:
  36.     /**
  37.      * Constructor.
  38.      */
  39.     KonqFavIconMgr(QObject *parent = 0, const char *name = 0);
  40.  
  41.     /**
  42.      * Downloads an icon from @p iconURL and associates @p url with it.
  43.      */
  44.     static void setIconForURL(const KURL &url, const KURL &iconURL);
  45.  
  46.     /**
  47.      * Downloads /favicon.ico from the host of @p url and associates all
  48.      * URLs on that host with it
  49.      * (unless a more specific entry for a URL exists)
  50.      */
  51.     static void downloadHostIcon(const KURL &url);
  52.  
  53.     /**
  54.      * Looks up an icon for @p url and returns its name if found
  55.      * or QString::null otherwise
  56.      */
  57.     static QString iconForURL(const QString &url);
  58.  
  59. k_dcop:
  60.     /**
  61.      * an icon changed, updates the combo box
  62.      */
  63.     virtual ASYNC notifyChange( bool, QString, QString ) = 0;
  64.  
  65. signals:
  66.     void changed();
  67. };
  68.  
  69. #endif
  70.  
  71.